Ext.define('Hr.view.cardinfo.ExpireWindow',{
    extend:'Ext.window.Window',
    alias:'widget.expire',
    width:400,
    height:500,
    renderTo:Ext.getBody(),
    bodyStyle : 'background-color:white;background-image:none',
    modal : true,
    resizable : false,
    layout:'fit',
    title:'以下人员证件将要或已经到期',
    items:[{
        xtype:'grid',
        width:'100%',
        height:'100%',
        border:false,
        autoScroll :true,
        id:'expireGrid',
        store:"cardinfo.CardTimeStore",
        columns:[{
            header:'id',
            flex:1,
            hidden:true,
            dataIndex:'id'
        },{
            header:'姓名',
            flex:1,
            dataIndex:'name'
        },{
            header:'证件名称',
            flex:1,
            dataIndex:'cardName'
        },{
            header:'发证日期',
            flex:1,
            dataIndex:'usefulTime'
        },{
            header:'最近审查日期',
            flex:1,
            dataIndex:'usefulEndTime'
        },{
            header:'剩余',
            bodyStyle: {
                color:'red'
		    },
            flex:1,
            dataIndex:'time'
        }]
    }],
    buttons:[{
        text:'知道了',
        handler:function(obj){
            obj.up('expire').close();
        }
    }]
});